<html>
<head><meta charset="utf-8"><title>Sqrt · project-inline-asm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/index.html">project-inline-asm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Sqrt.html">Sqrt</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="183598368"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/Sqrt/near/183598368" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lokathor <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Sqrt.html#183598368">(Dec 16 2019 at 22:34)</a>:</h4>
<p>(In the "WebAssembly" topic I mentioned offhand that  the sqrt intrinsic has problems with becoming stabilized, and <span class="user-mention" data-user-id="239881">@Josh Triplett</span> wanted to know more, but I didn't want to have a tangent in that thread, so I'm pre-emptively forking it to a new thread.)</p>
<p>Basically we <em>could</em> just stabilize the intrinsic, but people are "supposed" to call it via the <code>f32</code> method, but we can't put that method into <code>core</code> because we can't ensure that the <code>compiler-builtins</code> crate provides a <code>sqrt</code> function implementation exactly when needed because <a href="https://github.com/rust-lang/rust/issues/64514" target="_blank" title="https://github.com/rust-lang/rust/issues/64514">we don't have LLVM's hard-float/soft-float concepts as target_features</a> within Rust.</p>



<a name="183604801"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/Sqrt/near/183604801" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Sqrt.html#183604801">(Dec 17 2019 at 00:16)</a>:</h4>
<p>Is there any fundamental reason we can't just stabilize the intrinsic anyway? Doesn't have to be the "preferred" interface.</p>



<a name="183608045"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/Sqrt/near/183608045" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lokathor <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Sqrt.html#183608045">(Dec 17 2019 at 01:06)</a>:</h4>
<p>Not that I know of.</p>



<a name="183608071"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/216763-project-inline-asm/topic/Sqrt/near/183608071" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lokathor <a href="https://rust-lang.github.io/zulip_archive/stream/216763-project-inline-asm/topic/Sqrt.html#183608071">(Dec 17 2019 at 01:07)</a>:</h4>
<p>Would be a simple RFC</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>